import { Route, Switch } from "react-router-dom";
import List from "../pages/HomePages/List";
import Index from "../pages/HomePages/Index";
import Edit from "../pages/HomePages/Edit";
import Detail from "../pages/HomePages/Detail";
const HomeRouter = ()=> {
  return (
    <Switch>
      <Route exact path="/home" component={Index}></Route>
      <Route path="/home/list" component={List}></Route>
      <Route path="/home/edit" component={Edit}></Route>
      <Route path="/home/detail/:id" component={Detail}></Route>
    </Switch>
  )
};

export default HomeRouter;